﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Zhao.Models.Entity
{
    /// <summary>
    /// 场地表（可预订单元）
    ///</summary>
    [SugarTable("Fields")]
    public class Fields
    {


        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "FieldID", IsPrimaryKey = true, IsIdentity = true)]
        public int FieldID { get; set; }

        /// <summary>
        /// 备  注:所属球馆ID（关联Venues表）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "VenueID")]
        public Guid VenueID { get; set; }

        /// <summary>
        /// 备  注:场地类型ID（关联FieldTypes表）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "FieldTypeID")]
        public int FieldTypeID { get; set; }

        /// <summary>
        /// 备  注:场地名称（如"1号羽毛球场"）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "FieldName")]
        public string FieldName { get; set; } = null!;

        /// <summary>
        /// 备  注:运营状态：1-维护中，3-可预订
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Status")]
        public short? Status { get; set; }

        /// <summary>
        /// 备  注:软删除标记（0-正常，1-已移除）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "IsDeleted")]
        public bool? IsDeleted { get; set; }

        /// <summary>
        /// 备  注:场地创建时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "CreatedAt")]
        public DateTime? CreatedAt { get; set; }

        /// <summary>
        /// 备  注:最后修改时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "UpdatedAt")]
        public DateTime? UpdatedAt { get; set; }


    }

}